﻿using System.Collections.Generic;
using WebProject.Core.Models;

namespace WebProject.Core.Repositories
{
    public interface IGenericRepository<TEntity> where TEntity : class, IEntity
    {
        int Add(TEntity entity);

        int Remove(TEntity entity);

        int Update(TEntity entity);

        IList<TEntity> GetAll();

        TEntity GetById(int id);
    }
}
